package oo.day08;

public class GetSetDemo {
    public static void main(String[] args) {
        Animal dog = new Animal();

        dog.setName("哈士奇");
        dog.setAge(2);
        dog.setID("1234");
        System.out.println("我叫"+dog.getName()+",年龄为"+dog.getAge()+"\nID为："+dog.getID());

        Animal pig = new Animal();
        pig.setName("猪猪侠");
        pig.setAge(12);
        pig.setID("3242");
        System.out.println("我叫"+pig.getName()+",年龄为"+pig.getAge()+"\nID为："+pig.getID());
    }
}
